import java.util.List;

public class Tile {
	private int id;
	private List<Player> playersParked;
		
	public Tile(int id) {
		super();
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public void addPlayer (Player p){
		GameEngine.checkRules(p.getId(), id);
		playersParked.add(p);
	}
	
	public void removePlayer (Player p){
		playersParked.remove(p);
	}
}
